//
//  BalancePresentController.m
//  ICrEAM
//
//  Created by mac on 17/3/7.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "BalancePresentController.h"

@interface BalancePresentController ()
@property (weak, nonatomic) IBOutlet UIButton *submitBtn;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UITextField *estimateTextField;
@property (weak, nonatomic) IBOutlet UIButton *selectBtn;
@property (weak, nonatomic) IBOutlet UILabel *titleL;

@end

@implementation BalancePresentController
- (IBAction)submitClick:(id)sender {
    
    [self dismissViewControllerAnimated:YES completion:^{
        if ([self.delegate respondsToSelector:@selector(printProxyWithType:roNum:extimatePrice:)]) {
            [self.delegate printProxyWithType:self.printType roNum:self.proxy_No extimatePrice:self.estimateTextField.text];
        }
    }];
  

}
- (IBAction)selectedClick:(id)sender {
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.submitBtn.layer.borderColor=[UIColor blackColor].CGColor;
    self.submitBtn.layer.cornerRadius=4;
    self.submitBtn.layer.borderWidth=1;
    self.cancelBtn.layer.borderColor=[UIColor blackColor].CGColor;
    self.cancelBtn.layer.cornerRadius=4;
    self.cancelBtn.layer.borderWidth=1;
    
    if (![ICrEAMTool isVW]) {;
        self.titleL.textColor=KSKBgColor;
        [self.selectBtn setImage:[UIImage imageNamed:@"sk_selected_image"] forState:UIControlStateSelected];
        self.submitBtn.backgroundColor=KSKBgColor;
         self.cancelBtn.backgroundColor=KSKBgColor;
    }else{
        self.titleL.textColor=[UIColor colorWithHexString:@"0564a6"];
        self.submitBtn.backgroundColor=[UIColor colorWithHexString:@"0564a6"];
        self.cancelBtn.backgroundColor=[UIColor colorWithHexString:@"0564a6"];
    }
    self.estimateTextField.text=self.extimatePrice;
    self.selectBtn.hidden=YES;
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)cancelClick:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
